package com.ny.service.impl;

import com.ny.dao.ProductDao;

import com.ny.dao.impl.ProductDaoImpl;
import com.ny.service.ProductService;
import entity.Product;

import java.sql.SQLException;
import java.util.List;

public class ProductServiceImpl implements ProductService {

    private ProductDao productDao =  new ProductDaoImpl();
    public ProductServiceImpl() throws SQLException, ClassNotFoundException {
    }
    public List<Product> findAllProduct() throws SQLException {
        return productDao.findAllProduct();
    }

    @Override
    public int addProduct(Product product) {
        return 0;
    }

    @Override
    public int updateProduct(Product product1) {
        return 0;
    }

    @Override
    public int deleteProduct(int productId1) {
        return 0;
    }
}
